	<div id="primarytopwrapper">
		<div id="primary-content">
			<div id="featured-wrapper">
				<div id="paginate-featured-slider"></div>
				<?php if(isset($featured_slider) && !empty($featured_slider)){?>
					<!-- featured entries -->
					<div id="featured-slider" class="sliderwrapper">
						<?php
						$i = 1;
						foreach($featured_slider as $set_new) {
							if($i <= 10 ){
						?>
						<div class="contentdiv">
							<div class="sliderPostPhoto">
								<img src="<?php echo $this->webroot;?>timthumb.php?src=<?php echo $set_new['News']['image'];?>&amp;q=90&amp;w=340&amp;h=254&amp;zc=1" class="alignnone" alt="" />
								<div class="sliderPostInfo">
									<h2 class="featuredTitle"><a href="<?php echo $this->webroot.'news/show/'.$set_new['News']['id'];?>" rel="bookmark"><?php echo $set_new['News']['name'];?></a></h2>
								</div>
							</div><!-- end of sliderphoto/video -->

							<!-- Slider Post Excerpt -->
							<div class="featuredpost lastpost">
								<p>
									<span class="author"><a href="<?php echo $this->webroot.'news/auth/'.$set_new['News']['user_id'];?>" title="Posts by <?php echo $set_new['User']['name'];?>" rel="author"><?php echo $set_new['User']['name'];?></a></span> 									<span class="date"><?php echo date("h : i a",strtotime($set_new['News']['created']));?> | </span>							
									<?php echo substr($set_new['News']['description'],0,200);?>&hellip;
								</p>
								<span class="postmeta"><?php echo date("F j, Y",strtotime($set_new['News']['created']));?> / <a href="<?php echo $this->webroot.'news/show/'.$set_new['News']['id'];?>/#respond" title="Comment on <?php echo $set_new['News']['name'];?>">No Comment</a> / <a href="<?php echo $this->webroot.'news/show/'.$set_new['News']['id'];?>" title="Permalink to <?php echo $set_new['News']['name'];?>" rel="bookmark">Read More</a></span>								
							</div><!-- end of featuredpost (post excerpt) -->
							
						</div><!-- end of contentdiv -->
						<?php } $i++;} ?>
					</div><!-- end of #featured-slider -->

					<script type="text/javascript">
						featuredcontentslider.init({
							id: "featured-slider", //id of main slider DIV
							contentsource: ["inline", ""], //Valid values: ["inline", ""] or ["ajax", "path_to_file"]
							toc: "#increment", //Valid values: "#increment", "markup", ["label1", "label2", etc]
							nextprev: ["Prev", "Next"], //labels for "prev" and "next" links. Set to "" to hide.
							revealtype: "click", //Behavior of pagination links to reveal the slides: "click" or "mouseover"
							enablefade: [true, 0.4], //[true/false, fadedegree]
							autorotate: [false, 5000], //[true/false, pausetime]
							onChange: function(previndex, curindex){ //event handler fired whenever script changes slide
								//previndex holds index of last slide viewed b4 current (1=1st slide, 2nd=2nd etc)
								//curindex holds index of currently shown slide (1=1st slide, 2nd=2nd etc)
							}
						})
					</script>
					<!-- End of featured slider -->
								
					<?php }?>
				
				<!-- Entries below the featured section -->
				<?php if(isset($belowfeatured[0])){?>
				<div id="belowfeatured">
					<span class="catname">
						<a href="<?php echo $this->webroot.'news/category/'.$belowfeatured[0]['Category']['id'];?>"><?php echo $belowfeatured[0]['Category']['name']?></a>
					</span>				

					<div class="featuredpost lastpost">
						<h2 class="posttitle"><a href="<?php echo $this->webroot.'news/show/'.$belowfeatured[0]['News']['id'];?>" title="<?php echo $belowfeatured[0]['News']['name'];?>" rel="bookmark"><?php echo $belowfeatured[0]['News']['name'];?></a></h2>

						<img src="<?php echo $this->webroot;?>timthumb.php?src=<?php echo $belowfeatured[0]['News']['image'];?>&amp;q=90&amp;w=90&amp;h=80&amp;zc=1" class="alignleft" alt="" />						
						<p>
						<span class="author"><a href="<?php echo $this->webroot.'news/auth/'.$belowfeatured[0]['News']['user_id'];?>" title="Posts by <?php echo $belowfeatured[0]['User']['name'];?>" rel="author"><?php echo $belowfeatured[0]['User']['name'];?></a></span> 							<span class="date"><?php echo date("h : i a",strtotime($set_new['News']['created']));?> | </span>								
						<?php echo substr($belowfeatured[0]['News']['description'],0,200);?>&hellip;
						</p>	
						<span class="postmeta"><?php echo date("F j, Y",strtotime($belowfeatured[0]['News']['created']));?>  / 
						<a href="<?php echo $this->webroot.'news/show/'.$belowfeatured[0]['News']['id'];?>/#respond" title="Comment on <?php echo $belowfeatured[0]['News']['name'];?>">No Comment</a> /
						<a href="<?php echo $this->webroot.'news/show/'.$belowfeatured[0]['News']['id'];?>" title="Permalink to <?php echo $belowfeatured[0]['News']['name'];?>" rel="bookmark">Read More</a></span>					
					</div>
				</div>
				<?php } ?>
				<!-- End of entries below the featured section -->
			</div><!-- Enf of featuredContent -->
			<?php if(isset($primarymid) && !empty($primarymid)){?>
			<div id="primarymid">
				<!-- Entries on middle column on the right side of Featured section -->
				<span class="catname">
					<a href="<?php echo $this->webroot.'news/category/'; if(isset($primarymid[0]['Category']['name'])){ echo $primarymid[0]['Category']['id'];}?>"><?php if(isset($primarymid[0]['Category']['name'])){
						echo $primarymid[0]['Category']['name']; 
					}
					?></a>
				</span>		
				<?php 
				 $i = 1 ;
				foreach($primarymid as $set_primarymid){ 
				if($i<= 4){
				?>
				<div class="featuredpost <?php if($i == 4){?>lastpost<?php }?>">
							<h2 class="posttitle"><a href="<?php echo $this->webroot.'news/show/'.$set_primarymid['News']['id'];?>" title="<?php echo $set_primarymid['News']['name'];?>" rel="bookmark"><?php echo substr($set_primarymid['News']['name'],0,45).'...';?></a></h2>
							
							<img src="<?php echo $this->webroot;?>timthumb.php?src=<?php echo $set_primarymid['News']['image'];?>&amp;q=90&amp;w=60&amp;h=55&amp;zc=1" class="alignright" alt="" />							
						<p>
						<span class="author"><a href="<?php echo $this->webroot.'news/auth/'.$set_primarymid['News']['user_id'];?>" title="Posts by <?php echo $set_primarymid['User']['name'];?>" rel="author"><?php echo $set_primarymid['User']['name'];?></a></span> 							
						<span class="date"><?php echo date("h : i a",strtotime($set_primarymid['News']['created']));?> | </span>								
						<?php echo substr($set_primarymid['News']['description'],0,120);?>&hellip;
						</p>	
					
							<span class="postmeta"><?php echo date("F j, Y",strtotime($set_primarymid['News']['created']));?>  / 
						<a href="<?php echo $this->webroot.'news/show/'.$set_primarymid['News']['id'];?>/#respond" title="Comment on <?php echo $set_primarymid['News']['name'];?>">No Comment</a> /
						<a href="<?php echo $this->webroot.'news/show/'.$set_primarymid['News']['id'];?>" title="Permalink to <?php echo $set_primarymid['News']['name'];?>" rel="bookmark">Read More</a></span>		
				</div>
				<?php } $i++; } ?>
				<!-- End of entries on middle column on the right side of Featured section -->
				
					
			</div><!-- End of midColPosts -->
			<?php } ?>
		</div><!-- primary-content end -->
		<?php echo $this->element('primarysidebar');?>
</div>